{% set location = 'post' %}
{% extends "layout.html" %}
{% from "_page.html" import message, paginate %}
{% block title %}
文章列表
{% endblock %}
{% block content %}
<ol class="breadcrumb">
  <li><a href="#">Home</a></li>
  <li><a href="#">Library</a></li>
  <li class="active">Data</li>
</ol>

<div class="btn-toolbar" role="toolbar">
<div class="btn-group">
	<a class="btn btn-default" role="button" href="{{url_for('post_backend.new')}}"><i class="icon-plus"></i>New</a>
	<a href="#" class="btn btn-default" role="button">Remove</a>
</div>
</div>
<hr>
<table class="table table-striped table-bordered table-hover">
	<thead>
	<tr>
		<th>Name</th>
		<th>Created</th>
		<th>Action</th>
	</tr>
	</thead>
	<tbody>
	{% for post in page_obj.items %}
	<tr>
		<td>
			<a href="{{ url_for('post_backend.edit', id=post.id) }}">{{ post.title }}</a>
		</td>
		<td>{{ post.created}}</td>
		<td><a href="{{url_for('post_frontend.view', id=post.id)}}">View</a></td>
	</tr>
    {% endfor %}
	</tbody>
</table>
<iframe src="//instagram.com/p/lgb54iEC7B/embed/" width="612" height="710" frameborder="0" scrolling="no" allowtransparency="true"></iframe>
{{ paginate(page_obj) }}
{% endblock %}